<?php
#####################################################
# RWCARDS - Joomla E-Cards Componment!
# Copyright (C) 2004/2005 by Ralf Weber
# Company    : LoadBrain
# Homepage   : www.weberr.de
# Version    : 2.1.0
# Date       : 23/11/2005
# License    : Released under GPL
######################################################

defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );

if ( !defined('_RWCARDS_LANG_INCLUDED') ) 
{
  	if ( file_exists($mosConfig_absolute_path . "/components/com_rwcards/language/" . $mosConfig_lang . ".php") )
	{
    	include_once($mosConfig_absolute_path . "/components/com_rwcards/language/" . $mosConfig_lang . ".php");
  	}
	else 
	{
    	include_once($mosConfig_absolute_path . "/components/com_rwcards/language/english.php");
	}
}

class rwcards_config_html
{
/**
* Displays / Set some configdata
*/	
function setRWCardsConfig($option, $title, $data)
{
?>

<br />
<form name="adminForm" method="post" action="">
<div align="center" class="centermain">
		<table class="adminform">
		<tr>
			<td><?php echo _ADMIN_RWCARDS_CONFIG_LIFETIME; ?></td>
			<td><input name="rwcards_config_lifetime" type="text" value="<?php echo $data->lifetime; ?>">&nbsp;<a href="#" onMouseOver="return overlib('<?php echo _ADMIN_RWCARDS_CONFIG_LIFETIME_HINT; ?>', BELOW, RIGHT);" onmouseout="return nd();" ><img src="<?php echo $GLOBALS['mosConfig_live_site'];?>/includes/js/ThemeOffice/tooltip.png" border="0" /></a></td>
		</tr>
		<tr>
			<td><?php echo _ADMIN_RWCARDS_CONFIG_MAXADVANCED; ?></td>
			<td><input name="rwcards_config_maxadvanced" type="text"  value="<?php echo $data->maxadvanced; ?>">&nbsp;<a href="#" onMouseOver="return overlib('<?php echo _ADMIN_RWCARDS_CONFIG_MAXADVANCED_HINT; ?>', BELOW, RIGHT);" onmouseout="return nd();" ><img src="<?php echo $GLOBALS['mosConfig_live_site'];?>/includes/js/ThemeOffice/tooltip.png" border="0" /></td>
		</tr>
		<tr>
			<td><?php echo _ADMIN_RWCARDS_CONFIG_PAGER_SETTING; ?></td>
			<td><input name="rwcards_config_cardsperpage" type="text"  value="<?php echo $data->cardsperpage; ?>">&nbsp;<a href="#" onMouseOver="return overlib('<?php echo _ADMIN_RWCARDS_CONFIG_PAGER_SETTINGS_HINT; ?>', BELOW, RIGHT);" onmouseout="return nd();" ><img src="<?php echo $GLOBALS['mosConfig_live_site'];?>/includes/js/ThemeOffice/tooltip.png" border="0" /></td>
		</tr>
		<tr>
			<td><?php echo _ADMIN_RWCARDS_CONFIG_ROWS_SETTING; ?></td>
			<td><input name="rwcards_config_rowssperpage" type="text"  value="<?php echo $data->rowssperpage; ?>">&nbsp;<a href="#" onMouseOver="return overlib('<?php echo _ADMIN_RWCARDS_CONFIG_ROWS_SETTING_HINT; ?>', BELOW, RIGHT);" onmouseout="return nd();" ><img src="<?php echo $GLOBALS['mosConfig_live_site'];?>/includes/js/ThemeOffice/tooltip.png" border="0" /></td>
		</tr>
		<tr>
			<td><?php echo _ADMIN_RWCARDS_CONFIG_BACKGROUNDCOLOR_SETTING; ?></td>
			<td><input name="rwcards_config_backgroundcolor" type="text"  value="<?php echo $data->backgroundcolor; ?>">&nbsp;<a href="#" onMouseOver="return overlib('<?php echo _ADMIN_RWCARDS_CONFIG_BACKGROUNDCOLOR_SETTING_HINT; ?>', BELOW, RIGHT);" onmouseout="return nd();" ><img src="<?php echo $GLOBALS['mosConfig_live_site'];?>/includes/js/ThemeOffice/tooltip.png" border="0" /></td>
		</tr>
		<tr>
			<td><?php echo _ADMIN_RWCARDS_CONFIG_ATTACHEMENT_SETTING; ?></td>
			<td>
			<?php if ($data->attachement == '0' )
			{
				 ?>
				yes&nbsp;<input type="radio" name="rwcards_config_attachement" value="1">&nbsp;no&nbsp;<input type="radio" name="rwcards_config_attachement" value="0" checked>
			<?php
			}
			else
			{
			?>
				yes&nbsp;<input type="radio" name="rwcards_config_attachement" value="1" checked>&nbsp;nein&nbsp;<input type="radio" name="rwcards_config_attachement" value="0">
			<?php
			}
			?>			
			&nbsp;<a href="#" onMouseOver="return overlib('<?php echo _ADMIN_RWCARDS_CONFIG_ATTACHEMENT_SETTING_HINT; ?>', BELOW, RIGHT);" onmouseout="return nd();" ><img src="<?php echo $GLOBALS['mosConfig_live_site'];?>/includes/js/ThemeOffice/tooltip.png" border="0" /></td>
		</tr>
		<tr>
			<td><?php echo _ADMIN_RWCARDS_CONFIG_CAPTCHA_SETTING; ?></td>
			<td>
			<?php if ($data->captcha == '0' )
			{
				 ?>
				yes&nbsp;<input type="radio" name="rwcards_config_captcha" value="1">&nbsp;no&nbsp;<input type="radio" name="rwcards_config_captcha" value="0" checked>
			<?php
			}
			else
			{
			?>
				yes&nbsp;<input type="radio" name="rwcards_config_captcha" value="1" checked>&nbsp;no&nbsp;<input type="radio" name="rwcards_config_captcha" value="0">
			<?php
			}
			?>			
			&nbsp;<a href="#" onMouseOver="return overlib('<?php echo _ADMIN_RWCARDS_CONFIG_CAPTCHA_SETTING_HINT; ?>', BELOW, RIGHT);" onmouseout="return nd();" ><img src="<?php echo $GLOBALS['mosConfig_live_site'];?>/includes/js/ThemeOffice/tooltip.png" border="0" /></td>
		</tr>
		</table>
		<input type="hidden" name="theButton" value="<?php echo $option; ?>" />
		<input type="hidden" name="task" value="" />
		</form>
</div>
<?php
}

}//end class
?>